import config from "@/config";
import http from "@/utils/request";

export default {
	page: {
		url: `${config.API_URL}/prodsequence/pages/`,
		name: "分页",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	list: {
		url: `${config.API_URL}/prodsequence/list/`,
		name: "列表",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	issue: {
		url: `${config.API_URL}/prodsequence/issue/`,
		name: "下发",
		put: async function(data){
			return await http.put(this.url, data);
		}
	},
	pause: {
		url: `${config.API_URL}/prodsequence/pause/`,
		name: "暂停",
		put: async function(data){
			return await http.put(this.url, data);
		}
	},
	unPause: {
		url: `${config.API_URL}/prodsequence/unpause/`,
		name: "取消暂停",
		put: async function(data){
			return await http.put(this.url, data);
		}
	},
}
